package org.je.database.impl;

/**
 * @author fanyifeng 2012-10-16 上午10:52:09
 */
public class DataSource
{
	// <driver>com.mysql.jdbc.Driver</driver>
	// <connectionString></connectionString>
	// <user>root</user>
	// <pwd>sa</pwd>
	// <connectionCount>1</connectionCount>
	// <connectionLevel>4</connectionLevel>
	// <testSql>select 1</testSql>
	// <showSql>true</showSql>
	// <showResult>true</showResult>
	// <maxShowCount>10</maxShowCount>

	String	id;
	String	driver;
	String	connectionString;
	String	user;
	String	pwd;
	int		connectionCount;
	int		connectionLevel;
	String	testSql;
	boolean	showSql;
	boolean	showResult;
	int		maxShowCount;

	@Override
	public String toString() {
		return "{\r\nid: " + id + "\r\n" + "driver: " + driver + "\r\n" + "connectionString: " + connectionString
				+ "\r\n" + "user: " + user + "\r\n" + "pwd: " + pwd + "\r\n" + "connectionCount: " + connectionCount
				+ "\r\n" + "connectionLevel: " + connectionLevel + "\r\n" + "testSql: " + testSql + "\r\n"
				+ "showSql: " + showSql + "\r\n" + "showResult: " + showResult + "\r\n" + "maxShowCount: "
				+ maxShowCount + "\r\n}";
	}
}
